.class final Lnet/tsapps/topdeals/ads/apprupt/a;
.super Landroid/webkit/WebViewClient;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/ads/apprupt/b;

.field private final synthetic b:Landroid/content/Context;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/ads/apprupt/b;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/ads/apprupt/a;->a:Lnet/tsapps/topdeals/ads/apprupt/b;

    iput-object p2, p0, Lnet/tsapps/topdeals/ads/apprupt/a;->b:Landroid/content/Context;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public final onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "about:blank"

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method public final shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 4

    const/4 v3, 0x1

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lnet/tsapps/topdeals/ads/apprupt/a;->b:Landroid/content/Context;

    const-class v2, Lnet/tsapps/topdeals/ads/apprupt/TdCvOverlay;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v0, "url"

    invoke-virtual {v1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lnet/tsapps/topdeals/ads/apprupt/a;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v1, v3}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    return v3
.end method
